﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Autodesk;
using Autodesk.Revit;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Collections;
using Autodesk.Revit.Creation;
using Autodesk.Revit.DB.Structure;
using Autodesk.Revit.DB.Architecture;
using Autodesk.Revit.DB.Mechanical;
using Autodesk.Revit.DB.Events;
using Autodesk.Revit.UI.Events;
using Autodesk.Revit.DB.Electrical;
using Autodesk.Revit.UI.Selection;
using Autodesk.Revit.Utility;
using System.Collections;
using System.IO;


namespace AutoRebar
{
	public class Main : Autodesk.Revit.UI.IExternalCommand
	{
		public Autodesk.Revit.UI.Result Execute(ExternalCommandData commandData, ref String message, ElementSet elements)
		{
			//1: check current selected host

			//2: read project info, and put the information in DATA

			//3: create a dialog, and initialize this dialog with DATA

			//4: select work plane, top/left plane, bottom/right plane

			//5: collect information to create an array of rebars

			//6: create rebar

			//7: check the rebar

			//8: cheers
			return Autodesk.Revit.UI.Result.Succeeded;
		}
	}
}
